Skip to content

Keep BigQuery DATETIME and TIMESTAMP distinct in physical type checks - #1861

Open
royroyroys wants to merge 1 commit into
datacontract:mainfrom
royroyroys:fix/bigquery-datetime-vs-timestamp
Open

royroyroys wants to merge 1 commit into
datacontract:mainfrom
royroyroys:fix/bigquery-datetime-vs-timestamp

Conversation

@royroyroys

Copy link
Copy Markdown
Contributor

datacontract test treated BigQuery DATETIME and TIMESTAMP as the same physical type, so a contract declaring one passed against a column of the other. As they mean different things in BigQuery (a civil date and time vs. an instant), they now have to match exactly.

The other dialects keep matching timezone variants of timestamps, as Postgres contracts rely on timestamp matching a timestamptz column.

  • Tests pass (uv run pytest)
  • Code formatted (uv run ruff check --fix && uv run ruff format)
  • Docs updated (if relevant)
  • CHANGELOG.md entry added

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant